/**
 * Created by CodeTlan.
 * User: Ing. Miguel Salas
 * Date: 3/29/12
 * Time: 6:42 PM
 */
Ext.define("CT.view.historial.View",{
    extend:'Ext.view.View',
    alias:'widget.viewfotos',
    itemId:'idViewFotos',
    store:'Fotos',

    style:{
        backgroundColor:'#FFFFFF'
    },
    initComponent:function () {
        var imageTpl = new Ext.XTemplate(
            '   <ul style="text-align:center; margin-top: 5px;">',
            '       <tpl for=".">',
            '           <li style="margin: 2px; border:1px solid #CCCCCC; cursor: pointer; padding:2px; display:inline-block;" class="click-me">',
            '               <img src="thumbs.php?s={foto}&w=110&h=83&d=3" title="Click para eliminar" />',
            '           </li>',
            '       </tpl>',
            '   </ul>'
        );
        Ext.apply(this, {
            tpl: imageTpl,
            itemSelector: 'li.click-me'
        });
        this.callParent(arguments);

        //this.store.setParams({historial_k:this.historial_k},true);

    }
});